package com.wuzheng.job.demo.annotation;

import com.dangdang.ddframe.job.api.ShardingContext;
import com.dangdang.ddframe.job.api.simple.SimpleJob;
import com.wuzheng.elasticjob.annotation.ElasticJobConf;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@ElasticJobConf(name = "DemoSimpleJob", cron = "0/10 * * * * ?", shardingTotalCount = 1)
public class DemoSimpleJob implements SimpleJob {
    private final Logger logger = LoggerFactory.getLogger(this.getClass());

    @Override
    public void execute(ShardingContext shardingContext) {
        logger.info("SimpleJob execute-------------");
    }
}